//
//  XLMineBaseCellModel.h
//  Mine
//
//  Created by 于鹏 on 2017/8/25.
//  Copyright © 2017年 YIVIEW. All rights reserved.
//

#import <XLBaseModule/XLBaseCellModel.h>
#import <XLBaseModule/XLAppMacro.h>

//cell默认高度
//#define XL_KCellHeight 44
//标题左边的默认cell间距
#define XL_KCellMargin 15.0
//cell分割线默认颜色
#define XL_KSeparateColor  UIColorFromRGBA(0xe6e6e6, 1);
//cell分割线默认高度
#define XL_KSeparateHeight .5

////标题默认字体大小
//#define XL_KTitleFont  [UIFont systemFontOfSize:15.0]
//标题默认字体大小
#define XL_KTitleFont XLFONT(15.0)
//标题默认字体颜色
#define XL_KTitleColor  [UIColor blackColor]
//详细文本默认字体大小
//#define XL_KDetailFont [UIFont systemFontOfSize:13.0]
//详细文本默认字体大小
#define XL_KDetailFont XLFONT(13.0)
//标题默详细文本字体颜色
#define XL_KDetailColor  [UIColor grayColor]
//分组section之间的距离
#define XL_SectionHeight  10

//箭头默认宽度
#define XL_KArrowWidth 8
//箭头默认高度
#define XL_KArrowHeight 13
//#define XL_KArrowWidth 27
////箭头默认高度
//#define XL_KArrowHeight 27
//右侧控件距离右侧的距离
#define XL_KControlRightOffset 15
//右侧控件距离箭头的间隔
#define XL_KArrowControlRightOffset 7.5
//右边文本离左边的边距
//#define XL_KCellTextLeftPading  150
//距离cell上下默认边距pading
//#define XL_KCellPading  5

////左边大图默认宽度
//#define XL_KImageWidth  70
////左边大图默认高度
//#define XL_KImageHeight 70
//左边大图默认宽度
#define XL_KHeadImageWidth  70
//左边大图默认高度
#define XL_KHeadImageHeight 70
//开关默认宽度
#define XL_KSwitchWidth 50
//开关默认高度
#define XL_KSwitchHeight 30


@class XLMineBaseCellModel;
typedef void(^ClickActionBlock)(XLMineBaseCellModel *model, NSIndexPath *indexPath);

@interface XLMineBaseCellModel : XLBaseCellModel
/** cell点击方法*/
@property (nonatomic, copy)ClickActionBlock actionBlock;
/** cell标题*/
@property (nonatomic, copy) NSString *title;
/** cell标题颜色*/
@property (nonatomic, strong) UIColor *titleColor;
/** cell标题font*/
@property (nonatomic, strong) UIFont *titleFont;

/** 分割线左边距离*/
@property (nonatomic, assign) CGFloat seperateOffset;
/** 分割线高度*/
//@property (nonatomic, assign) CGFloat seperateHeight;
/** 分割线颜色*/
//@property (nonatomic, strong) UIColor *seperateColor;

/** 是否显示右侧箭头*/
@property (nonatomic, assign,getter=isShowArrow)BOOL showArrow;
/** 箭头image*/
@property (nonatomic, strong)UIImage *arrowImage;
/** 箭头宽度*/
//@property (nonatomic, assign)CGFloat arrowWidth;
/** 箭头高度*/
//@property (nonatomic, assign)CGFloat arrowHeight;
@property (nonatomic, assign,getter=isTopGrid)BOOL topGrid;//分割线是否顶格
@property (nonatomic,assign) UITableViewCellSelectionStyle   selectionStyle;//选中cell效果

//- (instancetype)initWithTitle:(NSString *)title;
- (instancetype)initWithTitle:(NSString *)title actionBlock:(ClickActionBlock)block;
//- (void)clickActionBlock:(ClickActionBlock)block;

@end
